package com.qf.qfwemedia.controller.v1;

import com.qf.qfleadnewsmodel.commons.dtos.ResponseResult;
import com.qf.qfwemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/channel")
public class ChannelController {

    @Autowired
    private WmChannelService wmChannelService;

    /**
     * 查询所有频道信息
     * @return
     */
    @GetMapping("/channels")
    public ResponseResult list(){

        return wmChannelService.getAll();
    }
}
